package generator.domain;


import java.io.Serializable;

/**
 * 
 * @TableName wvp_device
 */
public class WvpDevice implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private String deviceId;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String manufacturer;

    /**
     * 
     */
    private String model;

    /**
     * 
     */
    private String firmware;

    /**
     * 
     */
    private String transport;

    /**
     * 
     */
    private String streamMode;

    /**
     * 
     */
    private Integer onLine;

    /**
     * 
     */
    private String registerTime;

    /**
     * 
     */
    private String keepaliveTime;

    /**
     * 
     */
    private String ip;

    /**
     * 
     */
    private String createTime;

    /**
     * 
     */
    private String updateTime;

    /**
     * 
     */
    private Integer port;

    /**
     * 
     */
    private Integer expires;

    /**
     * 
     */
    private Integer subscribeCycleForCatalog;

    /**
     * 
     */
    private Integer subscribeCycleForMobilePosition;

    /**
     * 
     */
    private Integer mobilePositionSubmissionInterval;

    /**
     * 
     */
    private Integer subscribeCycleForAlarm;

    /**
     * 
     */
    private String hostAddress;

    /**
     * 
     */
    private String charset;

    /**
     * 
     */
    private Integer ssrcCheck;

    /**
     * 
     */
    private String geoCoordSys;

    /**
     * 
     */
    private String mediaServerId;

    /**
     * 
     */
    private String customName;

    /**
     * 
     */
    private String sdpIp;

    /**
     * 
     */
    private String localIp;

    /**
     * 
     */
    private String password;

    /**
     * 
     */
    private Integer asMessageChannel;

    /**
     * 
     */
    private Integer keepaliveIntervalTime;

    /**
     * 
     */
    private Integer broadcastPushAfterAck;

    /**
     * 协议类型,1:28181,2:35114
     */
    private Integer deviceProtocol;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getDeviceId() {
        return deviceId;
    }

    /**
     * 
     */
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    /**
     * 
     */
    public String getName() {
        return name;
    }

    /**
     * 
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     */
    public String getManufacturer() {
        return manufacturer;
    }

    /**
     * 
     */
    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    /**
     * 
     */
    public String getModel() {
        return model;
    }

    /**
     * 
     */
    public void setModel(String model) {
        this.model = model;
    }

    /**
     * 
     */
    public String getFirmware() {
        return firmware;
    }

    /**
     * 
     */
    public void setFirmware(String firmware) {
        this.firmware = firmware;
    }

    /**
     * 
     */
    public String getTransport() {
        return transport;
    }

    /**
     * 
     */
    public void setTransport(String transport) {
        this.transport = transport;
    }

    /**
     * 
     */
    public String getStreamMode() {
        return streamMode;
    }

    /**
     * 
     */
    public void setStreamMode(String streamMode) {
        this.streamMode = streamMode;
    }

    /**
     * 
     */
    public Integer getOnLine() {
        return onLine;
    }

    /**
     * 
     */
    public void setOnLine(Integer onLine) {
        this.onLine = onLine;
    }

    /**
     * 
     */
    public String getRegisterTime() {
        return registerTime;
    }

    /**
     * 
     */
    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    /**
     * 
     */
    public String getKeepaliveTime() {
        return keepaliveTime;
    }

    /**
     * 
     */
    public void setKeepaliveTime(String keepaliveTime) {
        this.keepaliveTime = keepaliveTime;
    }

    /**
     * 
     */
    public String getIp() {
        return ip;
    }

    /**
     * 
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 
     */
    public Integer getPort() {
        return port;
    }

    /**
     * 
     */
    public void setPort(Integer port) {
        this.port = port;
    }

    /**
     * 
     */
    public Integer getExpires() {
        return expires;
    }

    /**
     * 
     */
    public void setExpires(Integer expires) {
        this.expires = expires;
    }

    /**
     * 
     */
    public Integer getSubscribeCycleForCatalog() {
        return subscribeCycleForCatalog;
    }

    /**
     * 
     */
    public void setSubscribeCycleForCatalog(Integer subscribeCycleForCatalog) {
        this.subscribeCycleForCatalog = subscribeCycleForCatalog;
    }

    /**
     * 
     */
    public Integer getSubscribeCycleForMobilePosition() {
        return subscribeCycleForMobilePosition;
    }

    /**
     * 
     */
    public void setSubscribeCycleForMobilePosition(Integer subscribeCycleForMobilePosition) {
        this.subscribeCycleForMobilePosition = subscribeCycleForMobilePosition;
    }

    /**
     * 
     */
    public Integer getMobilePositionSubmissionInterval() {
        return mobilePositionSubmissionInterval;
    }

    /**
     * 
     */
    public void setMobilePositionSubmissionInterval(Integer mobilePositionSubmissionInterval) {
        this.mobilePositionSubmissionInterval = mobilePositionSubmissionInterval;
    }

    /**
     * 
     */
    public Integer getSubscribeCycleForAlarm() {
        return subscribeCycleForAlarm;
    }

    /**
     * 
     */
    public void setSubscribeCycleForAlarm(Integer subscribeCycleForAlarm) {
        this.subscribeCycleForAlarm = subscribeCycleForAlarm;
    }

    /**
     * 
     */
    public String getHostAddress() {
        return hostAddress;
    }

    /**
     * 
     */
    public void setHostAddress(String hostAddress) {
        this.hostAddress = hostAddress;
    }

    /**
     * 
     */
    public String getCharset() {
        return charset;
    }

    /**
     * 
     */
    public void setCharset(String charset) {
        this.charset = charset;
    }

    /**
     * 
     */
    public Integer getSsrcCheck() {
        return ssrcCheck;
    }

    /**
     * 
     */
    public void setSsrcCheck(Integer ssrcCheck) {
        this.ssrcCheck = ssrcCheck;
    }

    /**
     * 
     */
    public String getGeoCoordSys() {
        return geoCoordSys;
    }

    /**
     * 
     */
    public void setGeoCoordSys(String geoCoordSys) {
        this.geoCoordSys = geoCoordSys;
    }

    /**
     * 
     */
    public String getMediaServerId() {
        return mediaServerId;
    }

    /**
     * 
     */
    public void setMediaServerId(String mediaServerId) {
        this.mediaServerId = mediaServerId;
    }

    /**
     * 
     */
    public String getCustomName() {
        return customName;
    }

    /**
     * 
     */
    public void setCustomName(String customName) {
        this.customName = customName;
    }

    /**
     * 
     */
    public String getSdpIp() {
        return sdpIp;
    }

    /**
     * 
     */
    public void setSdpIp(String sdpIp) {
        this.sdpIp = sdpIp;
    }

    /**
     * 
     */
    public String getLocalIp() {
        return localIp;
    }

    /**
     * 
     */
    public void setLocalIp(String localIp) {
        this.localIp = localIp;
    }

    /**
     * 
     */
    public String getPassword() {
        return password;
    }

    /**
     * 
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 
     */
    public Integer getAsMessageChannel() {
        return asMessageChannel;
    }

    /**
     * 
     */
    public void setAsMessageChannel(Integer asMessageChannel) {
        this.asMessageChannel = asMessageChannel;
    }

    /**
     * 
     */
    public Integer getKeepaliveIntervalTime() {
        return keepaliveIntervalTime;
    }

    /**
     * 
     */
    public void setKeepaliveIntervalTime(Integer keepaliveIntervalTime) {
        this.keepaliveIntervalTime = keepaliveIntervalTime;
    }

    /**
     * 
     */
    public Integer getBroadcastPushAfterAck() {
        return broadcastPushAfterAck;
    }

    /**
     * 
     */
    public void setBroadcastPushAfterAck(Integer broadcastPushAfterAck) {
        this.broadcastPushAfterAck = broadcastPushAfterAck;
    }

    /**
     * 协议类型,1:28181,2:35114
     */
    public Integer getDeviceProtocol() {
        return deviceProtocol;
    }

    /**
     * 协议类型,1:28181,2:35114
     */
    public void setDeviceProtocol(Integer deviceProtocol) {
        this.deviceProtocol = deviceProtocol;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WvpDevice other = (WvpDevice) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getManufacturer() == null ? other.getManufacturer() == null : this.getManufacturer().equals(other.getManufacturer()))
            && (this.getModel() == null ? other.getModel() == null : this.getModel().equals(other.getModel()))
            && (this.getFirmware() == null ? other.getFirmware() == null : this.getFirmware().equals(other.getFirmware()))
            && (this.getTransport() == null ? other.getTransport() == null : this.getTransport().equals(other.getTransport()))
            && (this.getStreamMode() == null ? other.getStreamMode() == null : this.getStreamMode().equals(other.getStreamMode()))
            && (this.getOnLine() == null ? other.getOnLine() == null : this.getOnLine().equals(other.getOnLine()))
            && (this.getRegisterTime() == null ? other.getRegisterTime() == null : this.getRegisterTime().equals(other.getRegisterTime()))
            && (this.getKeepaliveTime() == null ? other.getKeepaliveTime() == null : this.getKeepaliveTime().equals(other.getKeepaliveTime()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getPort() == null ? other.getPort() == null : this.getPort().equals(other.getPort()))
            && (this.getExpires() == null ? other.getExpires() == null : this.getExpires().equals(other.getExpires()))
            && (this.getSubscribeCycleForCatalog() == null ? other.getSubscribeCycleForCatalog() == null : this.getSubscribeCycleForCatalog().equals(other.getSubscribeCycleForCatalog()))
            && (this.getSubscribeCycleForMobilePosition() == null ? other.getSubscribeCycleForMobilePosition() == null : this.getSubscribeCycleForMobilePosition().equals(other.getSubscribeCycleForMobilePosition()))
            && (this.getMobilePositionSubmissionInterval() == null ? other.getMobilePositionSubmissionInterval() == null : this.getMobilePositionSubmissionInterval().equals(other.getMobilePositionSubmissionInterval()))
            && (this.getSubscribeCycleForAlarm() == null ? other.getSubscribeCycleForAlarm() == null : this.getSubscribeCycleForAlarm().equals(other.getSubscribeCycleForAlarm()))
            && (this.getHostAddress() == null ? other.getHostAddress() == null : this.getHostAddress().equals(other.getHostAddress()))
            && (this.getCharset() == null ? other.getCharset() == null : this.getCharset().equals(other.getCharset()))
            && (this.getSsrcCheck() == null ? other.getSsrcCheck() == null : this.getSsrcCheck().equals(other.getSsrcCheck()))
            && (this.getGeoCoordSys() == null ? other.getGeoCoordSys() == null : this.getGeoCoordSys().equals(other.getGeoCoordSys()))
            && (this.getMediaServerId() == null ? other.getMediaServerId() == null : this.getMediaServerId().equals(other.getMediaServerId()))
            && (this.getCustomName() == null ? other.getCustomName() == null : this.getCustomName().equals(other.getCustomName()))
            && (this.getSdpIp() == null ? other.getSdpIp() == null : this.getSdpIp().equals(other.getSdpIp()))
            && (this.getLocalIp() == null ? other.getLocalIp() == null : this.getLocalIp().equals(other.getLocalIp()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getAsMessageChannel() == null ? other.getAsMessageChannel() == null : this.getAsMessageChannel().equals(other.getAsMessageChannel()))
            && (this.getKeepaliveIntervalTime() == null ? other.getKeepaliveIntervalTime() == null : this.getKeepaliveIntervalTime().equals(other.getKeepaliveIntervalTime()))
            && (this.getBroadcastPushAfterAck() == null ? other.getBroadcastPushAfterAck() == null : this.getBroadcastPushAfterAck().equals(other.getBroadcastPushAfterAck()))
            && (this.getDeviceProtocol() == null ? other.getDeviceProtocol() == null : this.getDeviceProtocol().equals(other.getDeviceProtocol()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getManufacturer() == null) ? 0 : getManufacturer().hashCode());
        result = prime * result + ((getModel() == null) ? 0 : getModel().hashCode());
        result = prime * result + ((getFirmware() == null) ? 0 : getFirmware().hashCode());
        result = prime * result + ((getTransport() == null) ? 0 : getTransport().hashCode());
        result = prime * result + ((getStreamMode() == null) ? 0 : getStreamMode().hashCode());
        result = prime * result + ((getOnLine() == null) ? 0 : getOnLine().hashCode());
        result = prime * result + ((getRegisterTime() == null) ? 0 : getRegisterTime().hashCode());
        result = prime * result + ((getKeepaliveTime() == null) ? 0 : getKeepaliveTime().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getPort() == null) ? 0 : getPort().hashCode());
        result = prime * result + ((getExpires() == null) ? 0 : getExpires().hashCode());
        result = prime * result + ((getSubscribeCycleForCatalog() == null) ? 0 : getSubscribeCycleForCatalog().hashCode());
        result = prime * result + ((getSubscribeCycleForMobilePosition() == null) ? 0 : getSubscribeCycleForMobilePosition().hashCode());
        result = prime * result + ((getMobilePositionSubmissionInterval() == null) ? 0 : getMobilePositionSubmissionInterval().hashCode());
        result = prime * result + ((getSubscribeCycleForAlarm() == null) ? 0 : getSubscribeCycleForAlarm().hashCode());
        result = prime * result + ((getHostAddress() == null) ? 0 : getHostAddress().hashCode());
        result = prime * result + ((getCharset() == null) ? 0 : getCharset().hashCode());
        result = prime * result + ((getSsrcCheck() == null) ? 0 : getSsrcCheck().hashCode());
        result = prime * result + ((getGeoCoordSys() == null) ? 0 : getGeoCoordSys().hashCode());
        result = prime * result + ((getMediaServerId() == null) ? 0 : getMediaServerId().hashCode());
        result = prime * result + ((getCustomName() == null) ? 0 : getCustomName().hashCode());
        result = prime * result + ((getSdpIp() == null) ? 0 : getSdpIp().hashCode());
        result = prime * result + ((getLocalIp() == null) ? 0 : getLocalIp().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getAsMessageChannel() == null) ? 0 : getAsMessageChannel().hashCode());
        result = prime * result + ((getKeepaliveIntervalTime() == null) ? 0 : getKeepaliveIntervalTime().hashCode());
        result = prime * result + ((getBroadcastPushAfterAck() == null) ? 0 : getBroadcastPushAfterAck().hashCode());
        result = prime * result + ((getDeviceProtocol() == null) ? 0 : getDeviceProtocol().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deviceId=").append(deviceId);
        sb.append(", name=").append(name);
        sb.append(", manufacturer=").append(manufacturer);
        sb.append(", model=").append(model);
        sb.append(", firmware=").append(firmware);
        sb.append(", transport=").append(transport);
        sb.append(", streamMode=").append(streamMode);
        sb.append(", onLine=").append(onLine);
        sb.append(", registerTime=").append(registerTime);
        sb.append(", keepaliveTime=").append(keepaliveTime);
        sb.append(", ip=").append(ip);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", port=").append(port);
        sb.append(", expires=").append(expires);
        sb.append(", subscribeCycleForCatalog=").append(subscribeCycleForCatalog);
        sb.append(", subscribeCycleForMobilePosition=").append(subscribeCycleForMobilePosition);
        sb.append(", mobilePositionSubmissionInterval=").append(mobilePositionSubmissionInterval);
        sb.append(", subscribeCycleForAlarm=").append(subscribeCycleForAlarm);
        sb.append(", hostAddress=").append(hostAddress);
        sb.append(", charset=").append(charset);
        sb.append(", ssrcCheck=").append(ssrcCheck);
        sb.append(", geoCoordSys=").append(geoCoordSys);
        sb.append(", mediaServerId=").append(mediaServerId);
        sb.append(", customName=").append(customName);
        sb.append(", sdpIp=").append(sdpIp);
        sb.append(", localIp=").append(localIp);
        sb.append(", password=").append(password);
        sb.append(", asMessageChannel=").append(asMessageChannel);
        sb.append(", keepaliveIntervalTime=").append(keepaliveIntervalTime);
        sb.append(", broadcastPushAfterAck=").append(broadcastPushAfterAck);
        sb.append(", deviceProtocol=").append(deviceProtocol);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}